/**
 * @file Globals.h
 * @brief Specifications for global variables used by GDR
 * @author Matt Stallmann @date 28 Nov 2001
 * $Id: Globals.h 10 2007-06-28 20:08:57Z mfms $
 */

/*
 *  Copyright (C) 1989, 2001  Matthias Stallmann, Prashant Hebbar.
 *  Contact: matt_stallmann@ncsu.edu
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program (file COPYING.txt); if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
 *  USA.
 */

extern XEvent  eve;             /**< current event */
extern Display *disp;           /**< default display */
extern GC      rubber_gc;       /**< default graphics context */
extern GC      copy_gc;         /**< graphics context for copying pixmaps */
extern GC      erase_gc;        /**< ... and for erasing them */
extern GC      hilite;          /**< for highlighted edges */
extern GC      vlab_gc;         /**< for vertex labels */
extern GC      elab_gc;         /**< for edge labels */
extern GC      msg_gc;          /**< for programmer messages */
extern XFontStruct *vlab_font_struct; /**< structures for the three fonts */
extern XFontStruct *elab_font_struct;
extern XFontStruct *msg_font_struct;
extern int vlab_yoffset;   /**< y offset for fonts (ascent + vertical padding) */
extern int elab_yoffset;
extern int msg_yoffset;
extern int vlab_height;    /**< height (per line) for labels, message window
                              (ascent + descent + 2 * vertical padding) */
extern int elab_height;
extern int msg_height;

extern Pixmap main_pixmap; /**< pixmap storing image from main window */

/* the main window, canvas, help window, popup menu, panel, and resume
   button */
extern Window main_window;
extern Window main_panel;
extern Window help_window;
extern Window menu_window;
extern Window resume_window;

extern int     screen;          /**< default screen */

extern unsigned long black,white; /**< black and white pixels */

/* cursors for move, drag, panel/menu, and normal select functions */
extern Cursor  mv_cur, label_curs, pane_cur, sel_curs;

extern char    *icone;          /**< title on the GDR icon */

extern int     number_of_vertices; /**< current maximum vertex number + 1 */
extern I_VX_NODE vx_array[];    /**< the adjacency list array */
extern H_NODE * all_edges;      /**< list of all edges */
extern int     direct;          /**< set if graph is directed */

extern int     pane_indx;       /**< index of the current pane menu selection */
extern bool (*funct[])( void ); /**< array of pointers to functions with no
                                   args that return booleans */

/** end of Globals.h **/

/*  [Last modified: 2007 06 28 at 19:19:40 GMT] */
